package cn.zsc.netdisk.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 通知信息
 * @author ccying
 * @date 2021/3/7
 */
@Data
public class Advise {
    /**
     * 通知ID
     * */
    private int id;
    /**
     * 接收通知人
     * */
    private String uid;
    /**
     * 通知标题
     * */
    private String title;
    /**
     * 通知内容
     * */
    private String content;
    /**
     * 是否已读: 0-未读，1-已读
     * */
    private int isRead;
    /**
     * 创建时间
     * */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime created;
}
